package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.ShopUserOpenid;

/**
 * 账号绑定信息Mapper接口
 * 
 * @author Alan Zhang
 * @date 2021-09-14
 */
public interface ShopUserOpenidMapper 
{
    /**
     * 查询账号绑定信息
     * 
     * @param id 账号绑定信息主键
     * @return 账号绑定信息
     */
    public ShopUserOpenid selectShopUserOpenidById(Long id);

    /**
     * 查询账号绑定信息列表
     * 
     * @param shopUserOpenid 账号绑定信息
     * @return 账号绑定信息集合
     */
    public List<ShopUserOpenid> selectShopUserOpenidList(ShopUserOpenid shopUserOpenid);

    /**
     * 新增账号绑定信息
     * 
     * @param shopUserOpenid 账号绑定信息
     * @return 结果
     */
    public int insertShopUserOpenid(ShopUserOpenid shopUserOpenid);

    /**
     * 修改账号绑定信息
     * 
     * @param shopUserOpenid 账号绑定信息
     * @return 结果
     */
    public int updateShopUserOpenid(ShopUserOpenid shopUserOpenid);

    /**
     * 删除账号绑定信息
     * 
     * @param id 账号绑定信息主键
     * @return 结果
     */
    public int deleteShopUserOpenidById(Long id);

    /**
     * 批量删除账号绑定信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopUserOpenidByIds(String[] ids);

    /**
     * 查询 账号绑定信息
     * @param sessionKey
     * @return
     */
    public ShopUserOpenid selectShopUserOpenidBySessionKey(String sessionKey);

    /**
     * 查询 账号绑定信息
     * @param userId
     * @return
     */
    public ShopUserOpenid selectShopUserOpenidByUserId(Long userId);
}
